export const BASE = 'PackageGoldCoinsExchangePa_';

export enum Command {
  //通用修改数据方法
  commonChange = 'PackageGoldCoinsExchangePa_commonChange',
  init = 'PackageGoldCoinsExchangePa_INIT',
  clean = 'PackageGoldCoinsExchangePa_CLEAN',
}

export const OSS_PATH_PREFIX = 'https://ruizhi-ipland.oss-cn-nanjing.aliyuncs.com/receiveGoldCoins';
export const OSS_BASE_PATH_PREFIX = 'https://ruizhi-ipland.oss-cn-nanjing.aliyuncs.com/gameBase';
export const GAME_TYPE = 0; //0-魔力金币雨，1-魔力抽盲盒，2-魔力赏，3-魔力抓娃娃，4-魔力抽抽卡，5-刮刮乐

export const GAME_STORAGE_INFO = 'gameUserInfo'; // 游戏用户账号token
export const GAME_SHARE_TITLE = '金币突然降落，快来接住';

export const NAVBAR_TITLE = '兑换中心';

export const GAME_RPICE_TYPE = {
  product: 0,
  ticket: 1,
  gold: 2,
  prop: 3,
  card: 4,
};

export const GAME_PRICE_INFO = {
  0: {
    errorImage: OSS_BASE_PATH_PREFIX + '/gameOnError.png', // 商品
    url: '/pages/package-I/collectionCabinet/index',
    title: '可前往收藏柜查看',
  },
  1: {
    errorImage: OSS_BASE_PATH_PREFIX + '/couponIcon.png', // 优惠券
    url: '/pages/package-A/customer/my-coupon/index',
    title: '可前往优惠券查看',
  },
  2: {
    errorImage: OSS_BASE_PATH_PREFIX + '/jinbiMore.png', // 金币
    url: '',
  },
  3: {
    errorImage: OSS_BASE_PATH_PREFIX + '/propIcon.png', // 道具
    url: '/pages/package-I/backpack/index',
    title: '可前往背包查看',
  },
  4: {
    errorImage: OSS_BASE_PATH_PREFIX + '/cardAnimation.png', // 卡片,
    url: '',
  },
};

export const EXCHANGE_STATUS_GET = 1; //已获取
export const EXCHANGE_STATUS_DEFALUT = 0; // 立即兑换

export const GAME_PRIZE_PRODUCT = OSS_BASE_PATH_PREFIX + '/gameOnError.png';

export const CODE_SUCCESS = 'K-000000';
export const CODE_COIN_INSUFFICIENT = 'K-330004'; // 魔力豆不足

export const SECONDS_FORMAT = 'YYYY-MM-DD HH:mm:ss';

// 商品状态
export const PRODUCT_STATUS = {
  withdraw: 0, // 撤回下架
  pushed: 1, // 上架
};
